﻿using System;
using System.Collections.Generic;
using System.Text;
using Unity.Credentials;

namespace Unity.Connections
{
    public interface IUnityCommunicationFactory
    {
        bool IsSupportedPull();
        bool IsSupportedPush();

        IUnityConsumer NewPushConsumer(IUnityCredentials credentials, IUnityCallback callback);
        IUnityConsumer NewPullConsumer(IUnityCredentials credentials);
        IUnityProducer NewProducer(IUnityCredentials credentials);
    }
}
